package com.example.controller;

import com.example.po.Registlevel;
import com.example.service.RegistlevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/registlevel")
public class RegistLevelController {
    @Autowired
    private RegistlevelService registlevelService;
    @RequestMapping("/list")
    public List<Registlevel> list() {
        return registlevelService.list();
    }
}
